﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Vincent.Shop.DomainModel;
using System.Data;

namespace Vincent.Shop.IRepository
{
    /// <summary>
    /// 商品类接口
    /// </summary>
    public interface ICart
    {
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="page">当前页</param>
        /// <param name="pagesize">每页显示多少</param>
        /// <param name="condition">查询条件, 如 " where 1=1 and id=222"</param>
        /// <param name="total">总记录数</param>
        /// <param name="db">数据库连接对象</param>
        /// <returns>返回List实体</returns>
        List<CartEntity> p_Cart_list(int page, int pagesize, string condition, ref int total, _Database db);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="page">当前页</param>
        /// <param name="pagesize">每页显示多少</param>
        /// <param name="condition">查询条件, 如 " where 1=1 and id=222"</param>
        /// <param name="total">总记录数</param>
        /// <param name="db">数据库连接对象</param>
        /// <returns>返回DataTable</returns>
        DataTable p_Cart_list_table(int page, int pagesize, string condition, ref int total, _Database db);
    }
}
